package com.zsl.dao;

import com.zsl.model.Category;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

public interface CategoryDao {
    /**
     * 获取目录数量
     * @param whereColumn
     * @param whereValue
     * @return
     * @throws SQLException
     */
    public String getCategoryCount(String[] whereColumn,String[] whereValue) throws SQLException;


    public List<Category> getCategory(String[] whereColumn,String[] whereValue) throws SQLException;


    public Map<String,Object> insertCategory(List<Category> categories);


    public Map<String,Object> updateCategoryById(List<Category> categories,int selectModel);

    public Integer deleteCategoryById(String category_id);

    public boolean isExistCategory(String name) throws SQLException;

}
